package com.atguigu.common.exception;

/**
 * @author : wanghongwei
 * create at:  2022/3/9  20:20
 * @description: 错误码
 */
public enum BizCodeEnum {
    UNKNOW_EXCEPION(10000,"系统未知异常"),
    VAILD_EXCEPION(10001,"参数格式校验失败");

    private Integer code;
    private String message;

    BizCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
